package com.nunbey.lingxi.activities;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.nunbey.lingxi.R;
import com.nunbey.lingxi.lincat.activityinit.BaseActivity;

public class MedicianShopActivity extends BaseActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //去掉标题栏
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_medician_shop);
        WebView webView = this.findViewById(R.id.medicianShopActivity_webview);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.getSettings().setDomStorageEnabled(true);
        webView.setWebViewClient(new WebViewClient());
        webView.loadUrl("https://m.baiji.com.cn/");
    }

    public static void startMedicianShopActivity(Context context){
        context.startActivity(new Intent(context,MedicianShopActivity.class));
    }
}